:root {
    --primary-color: #2ecc71;  /* 生命绿 */
    --secondary-color: #27ae60; /* 深绿 */
    --accent-color: #e74c3c;   /* 活力红 */
    --background-color: #f0f9f4; /* 淡绿背景 */
    --text-color: #2c3e50;
    --border-color: #bdc3c7;
    --shadow: 0 4px 6px rgba(46, 204, 113, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 0;
}

.nav-actions button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px 16px;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.nav-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    flex: 1;
}

.sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.tags-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tags-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.question-list {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--background-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    width: 80%;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
}

.star-rating {
    display: inline-flex;
    gap: 5px;
}

.star {
    cursor: pointer;
    color: #ddd;
}

.star.active {
    color: gold;
} 